function loginvalidata() {
    if(localStorage.getItem("user")==null) {

        location.href = "/takeoutfood/login?url=\""+location.href+"\"";

        return false;
    }
    return true;
}
